import edu.princeton.cs.algs4.StdOut;

public class T6 {
    public static void main(String[] args) {
        int f = 0;
        int g = 1;

        for(int i=0; i<=30 ;i++){
            StdOut.println(f);
            f = f+g;
            g = f-g;
        }
    }
}
